module.exports = function(window, document) {
	var apivm = require('../../common/avm.min')(window, document);
	var avm = apivm;
	var api = apivm.api;
	var Component = apivm.Component;
	var $ = apivm.$;
	(function() {
	var Recharge = /*@__PURE__*/ (function(Component) {
		function Recharge(props) {
			Component.call(this, props);

			var itemWidth = (Math.min(api.winWidth, api.winHeight) - 30) / 2;
			var itemHeight = itemWidth * 1.15;
			var dataList = [
				{
					price: "499￥",
					desc: "另送50元"
				},
				{
					price: "999￥",
					desc: "另送100元"
				},
				{
					price: "1999￥",
					desc: "另送200元"
				}
			];
			this.data = {
				dataList: dataList,
				itemWidth: parseInt(itemWidth),
				itemHeight: parseInt(itemHeight)
			};
		}

		if (Component) Recharge.__proto__ = Component;
		Recharge.prototype = Object.create(Component && Component.prototype);
		Recharge.prototype.constructor = Recharge;
		Recharge.prototype.apiready = function() {};
		Recharge.prototype.render = function() {
			var this$1 = this;
			return apivm.h(
				"scroll-view",
				{class: "recharge-main", "scroll-y": "true"},
				apivm.h(
					"view",
					{class: "recharge-container"},
					Object.entries(this.data.dataList).map(function(ref) {
						var index$1 = ref[0];
						var item$1 = ref[1];
						return apivm.h(
							"view",
							{
								style:
									"width:" +
									this$1.data.itemWidth +
									"px;height:" +
									this$1.data.itemHeight +
									"px;",
								class: "recharge-item"
							},
							apivm.h(
								"view",
								{class: "recharge-top"},
								apivm.h("image", {
									class: "bg-img",
									src: "../../image/recharge_top.png"
								}),
								apivm.h(
									"view",
									{class: "recharge-tag"},
									apivm.h("image", {
										class: "bg-img",
										src: "../../image/recharge_tag.png"
									}),
									apivm.h("text", {class: "recharge-tag-text"}, "充就送")
								),
								apivm.h("text", {class: "recharge-price"}, item$1.price),
								apivm.h("text", {class: "recharge-desc"}, item$1.desc)
							),
							apivm.h(
								"view",
								{class: "recharge-bottom"},
								apivm.h("image", {
									class: "bg-img",
									src: "../../image/recharge_bottom.png"
								}),
								apivm.h(
									"view",
									{class: "recharge-buttonBg"},
									apivm.h("image", {
										class: "bg-img",
										src: "../../image/recharge_button.png"
									}),
									apivm.h("text", {class: "recharge-button"}, "购买")
								)
							)
						);
					})
				)
			);
		};

		return Recharge;
	})(Component);
	apivm.define("recharge", Recharge);
	apivm.render(apivm.h("recharge", null), "body");
})();

	window['createApp'] = function() {
		apivm.$_start();
	}
	return avm;
}